'''使用for循环计算从1加到1000的值'''
z = 0
N = 1000
for i in range (1,N + 1):
    z += i
print(z)
